#include <iostream>
#include <vector>
#include <string>

using namespace std;
  bool IsPrime(int n) {
        for (int i = 2; i * i <= n; i++)
            if (n % i == 0) return false;
        return true;
    }
int main() 
{
  
    vector<string> b = { "zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine" };
    vector<string> a;
    string input;
    getline(cin, input);
    string temp = "";
    for (char c : input) {
        if (c == ' ') {
            a.push_back(temp);
            temp = "";
        }
        else {
            temp += c;
        }
    }
    a.push_back(temp);

    for (string i : a) {
        bool found = false;
        for (string j : b) {
            if (i == j) {
                found = true;
                break;
            }
        }
        if (!found) {
            cout << "Wrong input" << endl;
            return 0;
        }
    }

    int s = 0;
    for (int j = 0; j < 10; j++) {
        if (a[0] == b[j]) {
            s = j * 100;
        }
        if (a[1] == b[j]) {
            s = s + j * 10;
        }
        if (a[2] == b[j]) {
            s = s + j;
        }
    }
    std::cout << s << std::endl;

    int n = std::stoi(a[0]);
    for (int i = 2; i <= std::sqrt(n) + 1; i++) {
        if (n % i == 0) {
        }
    }

    return 0;
}
